//
//  BizApplication.h
//  WineCellar
//
//  Created by CoolCamel on 2017/11/21.
//  Copyright © 2017年 www.biz-united.com.cn. All rights reserved.
//

#import <Foundation/Foundation.h>

#pragma mark - Notification key
static NSString * const kBiz_Global_Notification_Timer = @"kBiz_Global_Notification_Timer";

static NSString *const kBiz_Pay_Result_Code = @"kBiz_Pay_Result_Code";//错误码
static NSString *const kBiz_Pay_Result_Message = @"kBiz_Pay_Result_Message";//错误信息

typedef void (^BizPayResultBlock)(NSDictionary * dic);
typedef void (^BizWechatAuthBlock)(BOOL ret, NSString * code);
typedef void (^BizWechatShareBlock)(BOOL success);
typedef void (^BizQQShareBlock)(BOOL success);


@interface BizApplication : NSObject
+ (instancetype)shareInstance;

- (void)configWithOptions:(NSDictionary *)launchOptions;
- (void)configRootWindowWithOptions:(NSDictionary *)launchOptions;
- (void)configNotificationWithDeviceToken:(NSData *)deviceToken;


#pragma mark - 定时器
//开始一个计时器
- (void)startTimer;
//结束一个计时器
- (void)cancelTimer;
//暂定计时器
- (void)suspendTimer;
//重启计时器
- (void)resumeTimer;
#pragma mark - URL跳转判断
- (BOOL)isNativeURL:(NSString *)url;
@end
